package com.kb.spring.jpa.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kb.spring.jpa.dao.PersonCrudRepository;
import com.kb.spring.jpa.entities.Person;

@Service
public class PersonCrudService {
	@Autowired
	private PersonCrudRepository personCrudRepository;

	@Transactional
	public void savePerson(List<Person> persons) {
		personCrudRepository.save(persons);
	}
}
